package com.zhj.edu.utils;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 线程池的工具类
 */
public class ThreadPoolUtils {

    //异常通知的线程池
    private static ThreadPoolExecutor exceptionNotifyThreadPool = new ThreadPoolExecutor(
            10,100,10, TimeUnit.SECONDS,new ArrayBlockingQueue<>(8192)
    );

    public static ThreadPoolExecutor getExceptionNotifyThreadPool() {
        return exceptionNotifyThreadPool;
    }
}
